<extend name="Index/index" />

<block name="main">

	<div class="row">
		<div class="col-md-12">
			<form action="<{:U('Category/insert')}>" method='post' class="form-horizontal" enctype="multipart/form-data">
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">分类名称 ：</label>
					<div class="col-sm-4">
						<input type="text" name="name" class="form-control" placeholder="请输入广告名称">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">父级ID ：</label>
					<div class="col-sm-4">
						<input type="text" name="pid" class="form-control" value="<{$list.id|default='0'}>" readonly>
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">分类路径 ：</label>
					<div class="col-sm-4">
						<input type="text" name="path" class="form-control" value="<{$list.path|default='0'}><{$list.id}>," readonly>
					</div>
				</div>
				
				<div class="form-group">
				    <div class="col-sm-offset-2 col-sm-4">
				      <button type="submit" class="btn btn-default">添 加</button>
				    </div>
				</div>
		
			</form>
		</div>
	</div>
</block>